#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time    : 2021/12/6 11:56 下午
# @Author  : WangZhixing

from .ArchStudio import ArchStudio
from .Bash import Bash
from .Chromium import Chromium
from .ITK import ITK
from .Hadoop import Hadoop



def Metric(name,file,gr_path=None,dep_file=None):

    if name=="ArchStudio":
        return ArchStudio(file,gr_path)
    elif name=="Bash":
        return Bash(file,gr_path,dep_file)
    elif name=="Chromium":
        return Chromium(file,gr_path)
    elif name=="ITK":
        return ITK(file,gr_path)
    elif name=="Hadoop":
        return Hadoop(file,gr_path)